package net.sisgac.despacho_mercaderia.model;

import java.io.Serializable;
import javax.persistence.*;

import java.util.List;


/**
 * The persistent class for the transportista database table.
 * 
 */
@Entity
@Table(name="transportista")
public class Transportista implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="idtransportista")
	private int idtransportista;

	@Column(name="nombre")
	private String nombre;
	@Column(name="NOMBRETRANSPORTISTA")
	private String nombretransportista;

	@Column(name="apellido")
	private String apellido;

	@Column(name="idVehiculo")
	private String vehiculo;
	@Column(name="APEMATTRANSPORTISTA")
	private String apemattransportista;

	@Column(name="DNITRANSPORTISTA")
	private String dnitransportista;

	@Column(name="placa")
	private String placa;

	@Column(name="constancia")
	private String constancia;

	@Column(name="TELEFONOTRANSPORTISTA")
	private String telefonotransportista;

	//bi-directional many-to-one association to GuiaRemision
	@OneToMany(mappedBy="TRANSPORTISTA")
	private List<GuiaRemision> guiaRemision;

	//bi-directional many-to-one association to Vehiculo
    @ManyToOne
	@JoinColumn(name="IDVEHICULO")
	private Vehiculo vehiculo;

    
    public Transportista() {
    }

	public int getIdtransportista() {
		return idtransportista;
	}

	public void setIdtransportista(int idtransportista) {
		this.idtransportista = idtransportista;
	}

	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

	public String getApellido() {
		return apellido;
	}

	public void setApellido(String apellido) {
		this.apellido = apellido;
	}

	public String getVehiculo() {
		return vehiculo;
	}

	public void setVehiculo(String vehiculo) {
		this.vehiculo = vehiculo;
	}

	public String getPlaca() {
		return placa;
	}

	public void setPlaca(String placa) {
		this.placa = placa;
	}

	public String getConstancia() {
		return constancia;
	}

	public void setConstancia(String constancia) {
		this.constancia = constancia;
	}

	public String getTelefonotransportista() {
		return this.telefonotransportista;
	}

	public void setTelefonotransportista(String telefonotransportista) {
		this.telefonotransportista = telefonotransportista;
	}
	
	public Vehiculo getVehiculo() {
		return this.vehiculo;
	}

	public void setVehiculo(Vehiculo vehiculo) {
		this.vehiculo = vehiculo;
	}

	public void setGuiaRemision(List<GuiaRemision> guiaRemision) {
		this.guiaRemision = guiaRemision;
	}

	public List<GuiaRemision> getGuiaRemision() {
		return guiaRemision;
	}
	
}